package com.disease.chronic.Exception;

public enum ChronicExceptionEnum {
    SUCCESS(200, "操作成功"),
    NO_DEVICE(401,"当前用户未绑定设备"),
    PASSWORD_WRONG(401,"密码错误或用户不存在"),
    PHONE_EXIST(409,"家属已存在"),
    USER_EXIST(409, "用户已存在"),  // HTTP 409 Conflict
    NO_MEASURE(409,"30天内没有测量数据"),
    NO_DAY_MEASURE(409,"今天没有测量数据"),
    MSM_MESSAGE(505,"短信服务推送信息"),
    SYSTEM_ERROR(500, "系统错误");

    private final Integer code;
    private final String message;

    ChronicExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}